package tt.dz.egobus.servicemanager.facade.driver;

import com.alibaba.dubbo.config.annotation.Reference;
import tt.dz.egobus.api.ResponseBack;
import tt.dz.egobus.api.apushservice.PushToUserApiService;
import tt.dz.egobus.api.apushservice.PushVo;
import tt.dz.egobus.servicemanager.facade.interator.Facade;

/**
 * @author Anson
 * @date 17-8-31
 * @name
 * @since 1.0.7
 */
@Facade(facadeName = "driver")
public class DriverFacade {

    @Reference(version = "1.0.6", timeout = 10000)
    private PushToUserApiService pushToUserApiService;

    /**
     * @param pushVo 个推参数
     * @name 对特定账号的用户进行推送
     * @date 2017-3-28
     * @author Jack
     * @since 1.0.6
     **/
    public ResponseBack<Boolean> pushMessage(PushVo pushVo) {
        ResponseBack<Boolean> responseBack = this.pushToUserApiService.pushMessage(pushVo);
        return responseBack;
    }
}
